Repository navigation
feat(facade): rebuild, app/project guards on update and delete_by_ids (1.3.0) - #32
Conversation
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: include the generated 1.3.0-rc4 SDK surface required by this facade.
I reviewed the full diff, the surrounding facade and generated API/model code, existing callers and docs, relevant history, backward compatibility, test changes, and the facade/generated-layer architecture. I found no AGENTS.md, CLAUDE.md, or CONTEXT*.md guidance in the repository. The tests were extended rather than weakened (106 added lines, no deletions), but pytest -q fails during collection because EverOS is no longer importable; the Python 3.12 and 3.14 CI jobs report the same failure. The missing generated surface is the blocking issue described inline.
| PurgeConfirmInput, | ||
| PurgeRequestData, | ||
| PurgeRequestInput, | ||
| RebuildInput, |
There was a problem hiding this comment.
Blocking: include the generated 1.3.0-rc4 SDK surface required by this facade.
This revision imports RebuildInput / RebuildStatusInput, but neither model is present or exported, and MemoryApi has neither rebuild endpoint. Because everos_cloud.__init__ suppresses the resulting internal ImportError, from everos_cloud import EverOS fails outright and pytest -q stops at collection. The same missing generation also means the current UpdateInput and DeleteByIdsInput models have no app_id / project_id fields, so Pydantic ignores those new kwargs and the advertised guards never reach the wire. Please include the required generated contract/client changes in this revision.
There was a problem hiding this comment.
Both reviews were of earlier heads (6d14d87, a4f5826), which were cut before the generated SDK landed. The branch now sits on v1 after #33 (3c2c08e chore(sdk): generate 1.3.0-rc4 from contract 2.0.0), and the current head is 3a246c2. No code change was needed.
Checked on 3a246c2:
RebuildInputandRebuildStatusInputexist (everos_cloud/models/rebuild_input.py,rebuild_status_input.py).MemoryApi.rebuild_memoryis ineveros_cloud/api/memory_api.py.UpdateInputandDeleteByIdsInputboth declareapp_id/project_idand list them in__properties, so the guards are serialized.- In a clean Python 3.12 venv,
from everos_cloud import EverOSimports.pytest -qpasses 291 tests, andpytest -q testspasses 91. - The CI run on
3a246c2passed: test (3.12), test (3.14) and build.
— automated follow-up by Dani's Claude agent
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: include the generated 1.3.0-rc4 SDK surface required by this facade.
I reviewed the new commit and the full branch diff, including repository guidance (none found), surrounding generated models/API code, callers and documentation, relevant history, backward compatibility, test changes, and the facade/generated-layer boundary. The new rebuild_wait(client.rebuild(...)) behavior and the add/flush timing documentation introduce no additional finding, and tests were only added, not weakened. However, the existing generated-SDK blocker remains unresolved on this head: pytest -q still fails during collection because EverOS cannot be imported, matching both current CI matrix failures. The original thread remains open.
… (1.3.0) - update() / delete_by_ids() take optional app_id / project_id guards (engine !277): a memory outside that app / project is refused like a missing one. Never filled from the client's defaults, so existing callers keep the id-only behaviour. - rebuild(), rebuild_status(), rebuild_wait() for the new /memory/rebuild (engine !287): deletes are now permanent and leave the profile, session summaries and skills stale until the caller rebuilds. rebuild_wait() explains a missing job_id (nothing_to_do / dry_run) instead of failing in model validation. - delete() / delete_by_ids() docs: permanent, rebuild_required / targets. context(): mention the optional answer mode. Needs the 1.3.0-rc4 generated models (RebuildInput, RebuildStatusInput). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lush notes - rebuild_wait(client.rebuild(...)) works directly, like purge_confirm takes the purge_request() result; a job_id string still works. - rebuild(): say what it costs (extraction metered, 429 once the quota is exhausted, size it with dry_run) and to take the owner from the session. - add() / flush(): a flush right after a queued add can run before the write lands and extract nothing; add with async_mode=False first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a4f5826 to
3a246c2
Compare
Facade for 1.3.0-rc4 (engine
release-20261102_v11, live in prod).What
update()/delete_by_ids()take optionalapp_id/project_idguards (engine !277). A memory outside that app / project is refused like a missing one:updategives a 404,delete_by_idsskips it. They are never filled from the client's defaults, the same asuser_id, so existing callers keep the id-only behaviour.rebuild(),rebuild_status()andrebuild_wait()for/memory/rebuild(engine !287). Deletes are now permanent and leave the profile, session summaries and skills stale until the caller rebuilds.rebuild()uses the client's scope, likedelete().rebuild_wait()polls with the same backoff aspurge_wait(). It raises on failure, with the job on.job. It raises a clearValueErrorwhen there is no job (nothing_to_do/dry_runreturnjob_id=None).delete()/delete_by_ids()say deletes are permanent, and describerebuild_required/targets.context()mentions the optional answer mode, which is off in Cloud.Verification
pytest tests: 90 passed against the generated 1.3.0-rc4 package (sdk-factory !17, pipeline 3095622358).delete_by_ids(..., app_id=<other app>)→deleted: 0.deleted: 1, withrebuild_required/targetspresent.rebuild(dry_run=True)/rebuild()→nothing_to_dofor an owner with no profile. That is by design: the engine's_plan_profileskips a missing profile even withforce, and the docstring says so.rebuild_status(<unknown>)→ 404not_found.Order
Draft until the generated
sdk/v1.3.0-rc4PR (from sdk-factory's release pipeline) is merged intov1. This branch importsRebuildInput/RebuildStatusInput, which only exist after that.🤖 Generated with Claude Code